package com.situ.company.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;
@Data
public class Applicant {
    private Integer id;
    private String name;
    private Integer age;
    private String sex;
    private String education;
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    //格式化
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//与数据库相对应
}
